package com.xhj.myframe.myspring.aop.aspectJ;

import org.springframework.stereotype.Component;

import java.util.concurrent.atomic.AtomicInteger;
/**
 * -
 *
 * @author 见见 pure_xhj@163.com @Date 2021-08-22 @Time 18:23
 */
@Component
public class MyCatch {
  volatile int flag = 0;
  AtomicInteger num = new AtomicInteger();
  int i = 0;

  void add() {
    i++;
    this.num.getAndIncrement();
  }
}
